package com.dlc.shop.systemtest.api.amount;

import com.dlc.shop.bean.model.Order;
import com.dlc.shop.delivery.common.param.DeliveryOrderItemParam;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

/**
 * @author lanhai
 */
public class DeliverApi {
    /**
     * 发货
     *
     */
    public static void orderItemsDelivery(DeliveryOrderItemParam deliveryOrderItemParam){
        String uri = Constant.SHOP_URL+"/order/delivery/orderItemsDelivery";
        HttpUtil.put(uri,deliveryOrderItemParam);
    }

    /**
     * 根据订单号获取未发货
     * @param orderNumber
     * @return
     */
    public static Order getOrderItemUnDelivery(String orderNumber){
        String uri = Constant.SHOP_URL+"/order/delivery/getOrderItemUnDelivery/"+orderNumber;
        return HttpUtil.get(uri, Order.class);
    }


}
